<!--
	作者：495246490@qq.com
	时间：2016-04-25
	描述：参数文案列表
-->
<h3>{{rootColumnName}}
   <small>{{rootColumnPrompt}}</small>
</h3>
<div  ng-controller="paramsListCtrl" class="panel panel-default">
	<div class="panel-heading">
		<form class="form-inline">
			<div class="form-group">
				<label for="searchInput"></label>
				<input type="text" ng-keyup="dataEvent($event)" ng-model="searchKey" class="form-control" id="searchInput" placeholder="{{searchplaceholder}}">
				<label for="">{{selectboxname}} : </label>
				<select class="custom-css form-control"  ng-model="selectValue" ng-change="dataChange()" ng-options="slectValue._value_ for slectValue in paramsTypes" >
				</select>
			</div>
		</form>
	</div>
	<div class="panel-body " ng-class="loading?'whirl standard':'' " style="border-top: 1px solid #CFDBE2;">
		<table class="table table-striped table-condensed">
			<thead>
				<tr>
              		<th><i class="icon-doc"></i> 参数名</th>
              		<th><i class="icon-grid"></i> 参数类型</th>
              		<th><i class="icon-social-tumblr"></i> 参数值</th>                          		
              		<th><i class="icon-clock"></i> 更新时间</th>
              		<th><i class="icon-wrench"></i> 操作</th>
          		</tr>
			</thead>
			<tbody>
				<!-- repeat begin -->
              	<tr ng-repeat=" params in paramsList ">
                  	<td><a ui-sref="cms.paramsDetail({ paramsId : params.id,size : turnPage.itemsPerPage,page : turnPage.currentPage,searchKey : searchKey,type : selectValue._index_,para : params.para})">{{params.name}}</a></td>
                  	<td>{{ params.type | params_type}}</td>
                  	<td title="{{params.value}}" style="max-width:200px;overflow: hidden;text-overflow: ellipsis;"><nobr ng-bind="params.value"></nobr></td>                          	
                  	<td >{{params.updateTime}}</td>
                  	<td class="text-center">
                      	<a tooltip="查看" tooltip-trigger="mouseenter" class="btn btn-xs btn-success" ui-sref="cms.paramsDetail({ paramsId : params.id,size : turnPage.itemsPerPage,page : turnPage.currentPage,searchKey : searchKey,type : selectValue._index_,para : params.para})"><i class="icon-magnifier"></i></a>
                  	</td>
             	</tr>
             	<!-- repeat end -->
			</tbody>
		</table>
		<p style="display: inline-block; margin:21px 0;height: 30px;line-height: 30px;"> 显示 <strong>{{turnPage.totalItems}}</strong> 条中的 <strong>{{turnPage.itemsPerPage*(turnPage.currentPage-1)+1}}-{{ToNum}}</strong> 条</p>
		<pagination class="pull-right" first-text="{{turnPage.firstText}}" previous-text="{{turnPage.previousText}}" next-text="{{turnPage.nextText}}" last-text="{{turnPage.lastText}}" total-items="turnPage.totalItems" ng-model="turnPage.currentPage" max-size="turnPage.maxSize"
			num-pages="numPages" boundary-links="true" ng-change="dataChange()" class="pagination-sm">
		</pagination>
	</div>
</div>